    package day3;

    import java.util.Scanner;

    /**
     * @author oldliu
     * @since 1.0
     */
    public class Liangshanhaohan {
        public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
            System.out.println("请输入梁山好汉的名字：");
            String name = in.next();
            switch (name) {
                case "宋江":
                    System.out.println("及时雨");
                    break;
                case "李逵":
              System.out.println("黑旋风");
                    break;
                case "鲁智深":
                    System.out.println("花和尚");
                    break;
                case "卢俊义":
                    System.out.println("玉麒麟");
                    break;
                default:
                    System.out.println("没有");
                    break;
            }
        }
    }
